For each example in The Analysis of Biological Data, these pages show R code to make the figures and analysis. Click on a chapter name below, or use the pulldown menu in the navigation bar to find the chapter you need. At the bottom of this page, you’ll find links to the Rmarkdown versions of these files.

Other resources for Whitlock and Schluter The Analysis of Biological Data are available chapter by chapter here. You can also view the resources by type, including:

R code for examples by chapter

Chapter 7: Analyzing proportions

Chapter 8: Fitting probability models to frequency data

Rmarkdown files for examples

Chapter 7; Chapter 8